<template>
  <div id="app">

   <router-view />
  </div>
</template>

<script>

  export default {
    name: 'app',
    components: {

    },
    mounted() {
    window.onload = function () {
      console.log(window.sessionStorage["ISlogin"]);
      if (!window.sessionStorage["ISlogin"]) {
        // 关闭浏览器
        window.localStorage.removeItem("ids");
      } else {
        // 刷新
      }
    };
    window.onunload = function () {
      window.sessionStorage["ISlogin"] = true;
    };
    window.onbeforeunload = function () {
      window.sessionStorage["ISlogin"] = true;
    };
  },
  }
</script>

<style>
*{margin: 0;padding: 0;outline: none;}
li{list-style: none;}
a{text-decoration: none;}
</style>
